package com.goodwill.androidtest.ui;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

import com.goodwill.androidtest.R;
import com.goodwill.androidtest.ui.adapter.SimpleRvAdapter;

public class FlowLayoutTestActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_flow_layout_test);
//        setContentView(R.layout.activity_flow_recycler_view);

//        initRecyclerView();
    }

    private void initRecyclerView() {
        RecyclerView recyclerView = findViewById(R.id.rv_list);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        // recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
        SimpleRvAdapter adapter = new SimpleRvAdapter();
        recyclerView.setAdapter(adapter);
        adapter.setCount(10);
    }
}
